<?php
include("Includes/FusionCharts.php");
?>
<div class="main">
				
				<div id="chartdiv" class="LeftColumn">
<?php
	//Nama ORang
	$arrData[0][1] = "MKI";
	$arrData[1][1] = "NSI";
	$arrData[2][1] = "PRO";
	$arrData[3][1] = "AUL";
	$arrData[4][1] = "DKA";
	//Nama Orang
	
	//presentation
	$arrData[0][2] = 12;
	$arrData[1][2] = 15;
	$arrData[2][2] = 7;
	$arrData[3][2] = 2;
	$arrData[4][2] = 11;
	//presentation
	
	//Oppor
	$arrData[0][3] = 4;
	$arrData[1][3] = 3;
	$arrData[2][3] = 9;
	$arrData[3][3] = 10;
	$arrData[4][3] = 6;
	//Oppor
	
	//Deal
	$arrData[0][4] = 7;
	$arrData[1][4] = 9;
	$arrData[2][4] = 3;
	$arrData[3][4] = 2;
	$arrData[4][4] = 9;
	//Deal
	
	//Now, we need to convert this data into XML. We convert using string concatenation.
	//Initialize <chart> element
	$strXML = "<chart caption='TA Presentasi Etc' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >";
	//Initialize <categories> element - necessary to generate a multi-series chart
	$strCategories = "<categories>";
	//Initiate <dataset> elements
	$strDataCurr = "<dataset seriesName='Presentation'>";
	$strDataPrev = "<dataset seriesName='Oppurtinity'>";
	$strDataNext = "<dataset seriesName='Deal'>";
	//Convert data to XML and append
	foreach ($arrData as $arSubData) {
        //Append <category name='...' /> to strCategories
        $strCategories .= "<category name='" . $arSubData[1] . "' />";
        //Add <set value='...' /> to both the datasets
        $strDataCurr .= "<set value='" . $arSubData[2] . "' />";
        $strDataPrev .= "<set value='" . $arSubData[3] . "' />";
		$strDataNext .= "<set value='" . $arSubData[4] . "' />";
	}

	//Close <categories> element
	$strCategories .= "</categories>";
	
	//Close <dataset> elements
	$strDataCurr .= "</dataset>";
	$strDataPrev .= "</dataset>";
	$strDataNext .= "</dataset>";
	
	//Assemble the entire XML now
	$strXML .= $strCategories . $strDataCurr . $strDataPrev .$strDataNext. "</chart>";
	
	//Create the chart - Column 3D Chart with data contained in strXML
	echo renderChart("FusionCharts/MSColumn2D.swf", "", $strXML, "xrevenue",600, 300, false, false);
	?>
				</div>
				
				<div class="RightColumn">
	<?php
	//Nama ORang
	$arrData2[0][1] = "MKI";
	$arrData2[1][1] = "NSI";
	//$arrData[2][1] = "PRO";
	//$arrData[3][1] = "AUL";
	//$arrData[4][1] = "DKA";
	//Nama Orang
	
	//presentation
	$arrData2[0][2] = 5;
	$arrData2[1][2] = 6;
	//$arrData[2][2] = 7;
	//$arrData[3][2] = 2;
	//$arrData[4][2] = 11;
	//presentation
	
	//Oppor
	$arrData2[0][3] = 4;
	$arrData2[1][3] = 3;
	//$arrData[2][3] = 9;
	//$arrData[3][3] = 10;
	//$arrData[4][3] = 6;
	//Oppor
	
	//Deal
	$arrData2[0][4] = 7;
	$arrData2[1][4] = 9;
	//$arrData[2][4] = 3;
	//$arrData[3][4] = 2;
	//$arrData[4][4] = 9;
	//Deal
	
	//Deal
	$arrData2[0][5] = 7;
	$arrData2[1][5] = 9;
	//$arrData[2][5] = 3;
	//$arrData[3][5] = 2;
	//$arrData[4][5] = 9;
	//Deal
	
	//Now, we need to convert this data into XML. We convert using string concatenation.
	//Initialize <chart> element
	$strXML = "<chart caption='SE Call And Target' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >";
	//Initialize <categories> element - necessary to generate a multi-series chart
	$strCategories = "<categories>";
	//Initiate <dataset> elements
	$strDataCurr = "<dataset seriesName='Press'>";
	$strDataPrev = "<dataset seriesName='Target Press'>";
	$strDataNext = "<dataset seriesName='Call'>";
	$strDataBeep = "<dataset seriesName='Target Call'>";
	//Convert data to XML and append
	foreach ($arrData2 as $arSubData) {
        //Append <category name='...' /> to strCategories
        $strCategories .= "<category name='" . $arSubData[1] . "' />";
        //Add <set value='...' /> to both the datasets
        $strDataCurr .= "<set value='" . $arSubData[2] . "' />";
        $strDataPrev .= "<set value='" . $arSubData[3] . "' />";
		$strDataNext .= "<set value='" . $arSubData[4] . "' />";
		$strDataBeep .= "<set value='" . $arSubData[5] . "' />";
	}

	//Close <categories> element
	$strCategories .= "</categories>";
	
	//Close <dataset> elements
	$strDataCurr .= "</dataset>";
	$strDataPrev .= "</dataset>";
	$strDataNext .= "</dataset>";
	$strDataBeep .= "</dataset>";
	
	//Assemble the entire XML now
	$strXML .= $strCategories . $strDataCurr . $strDataPrev .$strDataNext.$strDataBeep. "</chart>";
	
	//Create the chart - Column 3D Chart with data contained in strXML
	echo renderChart("FusionCharts/MSBar2D.swf", "", $strXML, "x2revenue",600, 300, true, true);
	?>
				</div>
			</div>
			<div class="clear"></div>
			
			<p></p>
			
			<div class="main">
				
				<div class="LeftColumn">
					<?php
	//Nama ORang
	$arrData4[0][1] = "Januari";
	$arrData4[1][1] = "Februari";
	$arrData4[2][1]  = "Maret";
	$arrData4[3][1]  = "April";
	//$arrData[4][1] = "DKA";
	//Nama Orang
	
	//presentation
	$arrData4[0][2] = 5;
	$arrData4[1][2] = 6;
	$arrData4[2][2] = 7;
	$arrData4[3][2] = 2;
	//$arrData[4][2] = 11;
	//presentation
	
	//Oppor
	$arrData4[0][3] = 4;
	$arrData4[1][3] = 3;
	$arrData4[2][3] = 9;
	$arrData4[3][3] = 10;
	//$arrData[4][3] = 6;
	//Oppor
	
	//Deal
	$arrData4[0][4] = 7;
	$arrData4[1][4] = 9;
	$arrData4[2][4] = 3;
	$arrData4[3][4] = 2;
	//$arrData[4][4] = 9;
	//Deal
	
	//Deal
	$arrData4[0][5] = 9;
	$arrData4[1][5] = 2;
	$arrData4[2][5] = 6;
	$arrData4[3][5] = 4;
	//$arrData[4][5] = 9;
	//Deal
	
	//Deal
	$arrData4[0][6] = 3;
	$arrData4[1][6] = 5;
	$arrData4[2][6] = 2;
	$arrData4[3][6] = 1;
	//$arrData[4][5] = 9;
	//Deal
	
	//Now, we need to convert this data into XML. We convert using string concatenation.
	//Initialize <chart> element
	$strXML = "<chart caption='REVENUE' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >";
	//Initialize <categories> element - necessary to generate a multi-series chart
	$strCategories = "<categories>";
	//Initiate <dataset> elements
	$strDataCurr = "<dataset seriesName='MKI'>";
	$strDataPrev = "<dataset seriesName='NSI'>";
	$strDataNext = "<dataset seriesName='AUL'>";
	$strDataBeep = "<dataset seriesName='PRO'>";
	$strDataReep = "<dataset seriesName='DKA'>";
	//Convert data to XML and append
	foreach ($arrData4 as $arSubData) {
        //Append <category name='...' /> to strCategories
        $strCategories .= "<category name='" . $arSubData[1] . "' />";
        //Add <set value='...' /> to both the datasets
        $strDataCurr .= "<set value='" . $arSubData[2] . "' />";
        $strDataPrev .= "<set value='" . $arSubData[3] . "' />";
		$strDataNext .= "<set value='" . $arSubData[4] . "' />";
		$strDataBeep .= "<set value='" . $arSubData[5] . "' />";
		$strDataReep .= "<set value='" . $arSubData[6] . "' />";
	}

	//Close <categories> element
	$strCategories .= "</categories>";
	
	//Close <dataset> elements
	$strDataCurr .= "</dataset>";
	$strDataPrev .= "</dataset>";
	$strDataNext .= "</dataset>";
	$strDataBeep .= "</dataset>";
	$strDataReep .= "</dataset>";
	
	//Assemble the entire XML now
	$strXML .= $strCategories . $strDataCurr . $strDataPrev .$strDataNext.$strDataBeep.$strDataReep. "</chart>";
	
	//Create the chart - Column 3D Chart with data contained in strXML
	echo renderChart("FusionCharts/MSLine.swf", "", $strXML, "x4revenue",600, 300, true, true);
	?>
				</div>
				
				<div class="RightColumn">
				
				<?php
	//Nama ORang
	$arrData5[0][1] = "Januari";
	$arrData5[1][1] = "Februari";
	$arrData5[2][1] = "Maret";
	$arrData5[3][1] = "April";
	$arrData5[4][1] = "Mei";
	//Nama Orang
	
	//presentation
	$arrData5[0][2] = 5;
	$arrData5[1][2] = 6;
	$arrData5[2][2] = 7;
	$arrData5[3][2] = 2;
	$arrData5[4][2] = 11;
	//presentation
	
	//Oppor
	$arrData5[0][3] = 4;
	$arrData5[1][3] = 3;
	$arrData5[2][3] = 9;
	$arrData5[3][3] = 10;
	$arrData5[4][3] = 6;
	//Oppor
	
	/*Deal
	$arrData5[0][4] = 7;
	$arrData5[1][4] = 9;
	$arrData5[2][4] = 3;
	$arrData5[3][4] = 2;
	$arrData5[4][4] = 9;
	*/
	
	/*
	$arrData5[0][5] = 9;
	$arrData5[1][5] = 2;
	$arrData5[2][5] = 6;
	$arrData5[3][5] = 4;
	$arrData5[4][5] = 9;
	*/
	
	/*
	$arrData5[0][6] = 3;
	$arrData5[1][6] = 5;
	$arrData5[2][6] = 2;
	$arrData5[3][6] = 1;
	$arrData5[4][6] = 9;
	*/
	
	//Now, we need to convert this data into XML. We convert using string concatenation.
	//Initialize <chart> element
	$strXML = "<chart caption='TARGET AND REVENUE' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >";
	//Initialize <categories> element - necessary to generate a multi-series chart
	$strCategories = "<categories>";
	//Initiate <dataset> elements
	$strDataCurr = "<dataset seriesName='Target'>";
	$strDataPrev = "<dataset seriesName='Revenue'>";
	//$strDataNext = "<dataset seriesName='AUL'>";
	//$strDataBeep = "<dataset seriesName='PRO'>";
	//$strDataReep = "<dataset seriesName='DKA'>";
	//Convert data to XML and append
	foreach ($arrData5 as $arSubData) {
        //Append <category name='...' /> to strCategories
        $strCategories .= "<category name='" . $arSubData[1] . "' />";
        //Add <set value='...' /> to both the datasets
        $strDataCurr .= "<set value='" . $arSubData[2] . "' />";
        $strDataPrev .= "<set value='" . $arSubData[3] . "' />";
		//$strDataNext .= "<set value='" . $arSubData[4] . "' />";
		//$strDataBeep .= "<set value='" . $arSubData[5] . "' />";
		//$strDataReep .= "<set value='" . $arSubData[6] . "' />";
	}

	//Close <categories> element
	$strCategories .= "</categories>";
	
	//Close <dataset> elements
	$strDataCurr .= "</dataset>";
	$strDataPrev .= "</dataset>";
	//$strDataNext .= "</dataset>";
	//$strDataBeep .= "</dataset>";
	//$strDataReep .= "</dataset>";
	
	//Assemble the entire XML now
	$strXML .= $strCategories . $strDataCurr . $strDataPrev."</chart>";
	
	//Create the chart - Column 3D Chart with data contained in strXML
	echo renderChart("FusionCharts/MSLine.swf", "", $strXML, "x5revenue",600, 300, true, true);
	?>
				
				</div>
			</div>
			<div class="clear"></div>